using System;
using System.Collections;
using System.Data;
using ICachePolicy = PHSRAG.Insight21.Policy.ICachePolicy;

namespace PHSRAG.Insight21.FormsManagement
{
	/// <summary>
	/// DropDownListQuestion abstracts the notion of a QuestionnaireItem which allows the user to select one among a predefined set of values
	/// </summary>
	public class DropDownListQuestion : QuestionnaireItem
	{

		/// <summary>
		/// Constructs a new DropDownListQuestion object based on the Cache Policy passed in as a parameter. 
		/// All the instance variables will be set to default values of their associated types.
		/// </summary>
		/// <param name="cachePolicy">The prevalent cache policy</param>
		public DropDownListQuestion(ICachePolicy cachePolicy): base(cachePolicy)
		{
		}
	
		/// <summary>
		/// Constructs a new DropDownListQuestion object based on the Cache Policy passed in as a parameter. 
		/// All the instance variables will be set to the corresponding values specified in the Data Row
		/// </summary>
		/// <param name="cachePolicy">The prevalent cache policy</param>
		/// <param name="dataRow">DataRow holding the values to be assigned to instance variables</param>
		public DropDownListQuestion(ICachePolicy cachePolicy, DataRow dataRow): base(cachePolicy, dataRow)
		{
		}

		/// <summary>
		/// Gets the type of the questionnaire item (DropDownListItemType)
		/// </summary>
		public override string Type
		{
			get	{ return QuestionnaireItem.DropDownListItemType; }
		}
		
	}
}
